package pta06;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner  sc= new Scanner(System.in);
		int [] arr=new int[5];
		String str=null;
		while(sc.hasNext()){
			String choice=sc.next();
			
			try{
				if(choice.equals("arr")){
					int index=sc.nextInt();
				    arr[index]=1;
			     }
			   else if(choice.equals("null")){
				   str.length();
				   
			    }else if(choice.equals("cast")){
			    	Object o=new String("str");
			    	@SuppressWarnings("unused")
					Integer x=(Integer)o;
			    }else if(choice.equals("num")){
				String intNum=sc.next();
				Integer.parseInt(intNum);
			    }else{
				break;
			    }
		}catch(Exception e){
			System.out.println(e);
		}
		}
	}
}

	
	


